//
// Created by Martin on 2021/9/29.
//

#include "CashRebate.h"

double CashRebate::acceptCash(double money) {
    return money * moneyRebate;
}

CashRebate::CashRebate(double moneyRebate)
{
    this->moneyRebate = moneyRebate;
    title = std::to_string(moneyRebate * 10) + "折";
}
